cmake_minimum_required(VERSION 3.8)
project(slam_ros_msgs)

if(NOT CMAKE_CXX_STANDARD)
  set(CMAKE_CXX_STANDARD 17)
endif()

find_package(ament_cmake REQUIRED)
find_package(rosidl_default_generators REQUIRED)
find_package(geometry_msgs REQUIRED)
find_package(std_msgs REQUIRED)

# 生成接口文件
rosidl_generate_interfaces(${PROJECT_NAME}
  "srv/SetInitLocalizationPose.srv"
  "srv/FinishTrajectory.srv"
  "srv/ReadMetrics.srv"
  "srv/LocalizationTask.srv"
  "srv/GetMapData.srv"
  "srv/OnlyUseOdomPredictPose.srv"
  "srv/SubmapQuery.srv"
  "srv/WriteState.srv"
  "srv/GetLandmarkLists.srv"
  "srv/ExtendMappingTask.srv"
  "srv/Syncmap.srv"
  "srv/QuerySlamStatus.srv"
  "srv/ControlSam.srv"
  "srv/MappingTask.srv"
  "srv/Deletemap.srv"
  "srv/StartTrajectory.srv"
  "srv/TrajectoryQuery.srv"
  "srv/PgmToLocalizationMap.srv"
  "srv/GetTrajectoryStates.srv"
  "srv/ChangeMap.srv"
  "srv/LogSlamData.srv"
  "msg/Metric.msg"
  "msg/SubmapTexture.msg"
  "msg/BagfileProgress.msg"
  "msg/MetricFamily.msg"
  "msg/LandmarkEntry.msg"
  "msg/MetricLabel.msg"
  "msg/StatusResponse.msg"
  "msg/PoseWithConfidence.msg"
  "msg/LandmarkListPose.msg"
  "msg/LandmarkList.msg"
  "msg/SubmapEntry.msg"
  "msg/HistogramBucket.msg"
  "msg/RobotStatus.msg"
  "msg/SubmapList.msg"
  "msg/StatusCode.msg"
  "msg/ReflectorLandmark.msg"
  "msg/QRCode.msg"
  "msg/TrajectoryStates.msg"
  "msg/MapdataProgress.msg"
DEPENDENCIES
    geometry_msgs
    std_msgs
)

ament_export_dependencies(
  rosidl_default_runtime
  geometry_msgs
  std_msgs
)

ament_package()